/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package assignment1;
/**
 *
 * @author Karin West
 * Student No: 201099764 [part-time]
 */
public class myArray implements myInterface{
    String[] fruitArray = {"apple", "pear", "orange"};
    String fruitJuiceName = "lemon";
	
    public myArray()
    {
	super();
    }

    public myArray(String[] fruitArray, String fruitJuiceName)
    {
	super();
		
	this.fruitArray = fruitArray;
        this.fruitJuiceName = fruitJuiceName;
        
    }

    public String[] getfruitArray()
    {
	return fruitArray;
    }

    public void setfruitArray(String[] fruitArray)
    {
	this.fruitArray = fruitArray;
    }

    public String getFruitJuiceName() {
        return fruitJuiceName;
    }

    public void setFruitJuiceName(String fruitJuiceName) {
        this.fruitJuiceName = fruitJuiceName;
    }

    @Override
    public String toString()
    {
	return "myArray [fruit Array = " + fruitArray + "fruit Juice Name = " + fruitJuiceName + "]";
    }    

    @Override
    public String methodEquals() {
        return getFruitJuiceName();
    }
}
